<{include file="Public/top.html" }>
	</head>
	<body>
		<div id="warpper">
            <div class="content">
                <div class="location">表单提交记录</div>
                <{include file="./nav.html" }>
                <div class="filedSet" style="padding-bottom: 0;">
                    <div class="search">
                        <form action="<{u('recordList')}>" id="searchForm" method="get" class="ui-form reportForm">
                            <input name="m" type="hidden" value="<{$module}>">
                            <input name="c" type="hidden" value="<{$controller}>">
                            <input name="a" type="hidden" value="<{$action}>">

                            <input name="p" id="page" type="hidden" value="<{$page|default:1}>">
                            <input name="limit" id="limit" type="hidden" value="<{$limit|default:10}>">
                            <input name="ofield" id="ofield" type="hidden" value="<{$ofield}>">
                            <input name="otype"  id="otype"  type="hidden" value="<{$otype}>">

                            <div class="ui-form-item inline-block">
                                <label class="ui-label">表单:<{$formKv[$fid]}></label>
                                <input type="hidden" name="id" value="<{$fid}>">
                            </div>
                            <div class="ui-form-item inline-block">
                                <label class="ui-label">登记日期</label>
                                <input  name="startDate" id="startDate" readonly class="ui-select" type="text" />
                                <label class="ui-label">至</label>
                                <input  name="endDate" id="endDate" readonly class="ui-select" type="text" />
                            </div>
                            <div class="ui-form-item inline-block">
                                <label class="ui-label">用户昵称</label>
                                <input  name="nickname" class="ui-text bg-text keyword" type="text" />
                            </div>
                            <div class="ui-form-item inline-block">
                                <button type="button" class="ui-button" onclick="query();"> 搜索 </button>
                            </div>
                            <div class="ui-form-item inline-block">
                                <button type="button" class="ui-button" onclick="exportData();"> 导出 </button>
                            </div>
                        </form>
                    </div>
                </div> 
                             
                
                <!--表格内容-->
                <div class="mainGrid">
                    <table class="ui-table ui-body">
                        <thead>
                        <tr>
                            <th class="pct15">编号</th>
                            <th class="pct15">用户昵称</th>
                            <th class="pct12">登记时间</th>
                        </tr>
                        </thead>
                        <tbody id="listHTML">
                            <{include file="./record_list.html" }>
                        </tbody>
                    </table>
                </div>
                <div class="pagination" id="pagerHTML">
                    <!--描述：分页-->
                    <{include file="Public/page_ajax.html" }>
                </div>
            </div>
		</div>
        <{include file="Public/foot_ajax.html" }>


        <script>
            datePickter('startDate','endDate',true);


            function exportData(){
                window.location.href='<{u("exportRecord")}>'+$('#searchForm').serialize()+'&export=1';
            }
        </script>

	</body>
</html>

